package com.to8to.thrift.esb.async.example.server;

import java.lang.reflect.Method;

import com.to8to.kitt.Advice;

public class ServiceAClientAdvice implements Advice{

	@Override
	public void before(Method method, Object[] args) {
		
		System.out.println("req: " + args[0]);
	}

	@Override
	public void after(Method method, Object[] args, long millSeconds,
			Object retVal) {
		System.out.println("res: " + retVal + ", time: " + millSeconds + "(ms)");
		
	}

	@Override
	public void tryCatch(Throwable e) throws Throwable {
		// TODO Auto-generated method stub
		
	}

}
